package com.wyh.springbootrabbitmq.listener;

import com.wyh.springbootrabbitmq.constant.Constant;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutListener2 {
    @RabbitListener(queues = Constant.FANOUT_QUEUE2)
    public void fanoutListener(String msg){
        System.out.println("fanoutListener2 " + "[" + Constant.FANOUT_QUEUE2 + "]" + msg);
    }
}
